﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using DDD_AOP_WCF.Domain;
namespace DDD_AOP_WCF.Service
{
    public class ServiceBase
    {
        public DbContext Db;

        #region Constructors
        public ServiceBase(DbContext db)
        {
            Db = db ?? new backgroundEntities();
        }
        public ServiceBase()
            : this(null)
        {

        }
        #endregion

    }
}